/*
 *      Copyright (c) 20116-20216, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.youan.log.modules.audit.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-03-31
 */
@Data
@TableName("log_db_asset_search")
@ApiModel(value = "DbAssetSearch对象", description = "DbAssetSearch对象")
public class DbAssetSearch implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@ExcelIgnore
	private Long id;
	@ExcelProperty("IP地址")
	@ColumnWidth(16)
	private String ip;
	/**
	* 首次出现时间
	*/
	@ApiModelProperty(value = "首次出现时间")
	@ExcelProperty("首次发现时间")
	@ColumnWidth(20)
	private String earliestStartTime;
	@ExcelProperty("IP所属国家")
	@ColumnWidth(16)
	private String ipCountry;
	@ExcelProperty("IP所属省份")
	@ColumnWidth(16)
	private String ipProvince;
	@ExcelProperty("IP所属城市")
	@ColumnWidth(16)
	private String ipCity;
	@ExcelProperty("IP所属运营商")
	@ColumnWidth(20)
	private String ipIsp;
	@ExcelProperty("IP使用人")
	@ColumnWidth(16)
	private String ipUser;


}
